home *** CD-ROM | disk | FTP | other *** search
- stop();
- drag_btn.onRollOver = function()
- {
- mdm.Forms.MainForm.startDrag();
- };
- drag_btn.onRollOut = function()
- {
- mdm.Forms.MainForm.stopDrag();
- };
- minimize_btn.onPress = function()
- {
- mdm.Application.minimize();
- };
- close_btn.onPress = function()
- {
- abreURL("fechar");
- _level1.volta_inicio();
- gotoAndStop("fechar");
- play();
- };
- voltar_btn.onPress = function()
- {
- abreURL("fechar");
- _level1.volta_inicio();
- };
- discador_btn.onPress = function()
- {
- mdm.System.exec(mdm.Application.path + "interface/discador/tela_discador.exe");
- };
- discador_btn.onRollOut = function()
- {
- discadoref_mc.gotoAndPlay("sair");
- };
- discador_btn.onRollOver = function()
- {
- discadoref_mc.gotoAndPlay("inicio");
- };
- var bg_sound = new Sound();
- bg_sound.loadSound(mdm.Application.path + "interface/trilha.mp3",true);
- bg_sound.onSoundComplete = function()
- {
- bg_sound.start();
- };
- controle_som = function(power)
- {
- if(power == undefined)
- {
- if(_root.som_mc._currentframe == 2)
- {
- _root.som_mc.gotoAndStop("ligar");
- bg_sound.start();
- }
- else
- {
- _root.som_mc.gotoAndStop("desligar");
- stopAllSounds();
- }
- }
- else if(power == "ligar")
- {
- _root.som_mc.gotoAndStop("ligar");
- bg_sound.start();
- }
- else
- {
- _root.som_mc.gotoAndStop("desligar");
- stopAllSounds();
- }
- };
- _root.som_mc.onPress = function()
- {
- controle_som();
- };
- som_mc.onRollOut = function()
- {
- controledesomef_mc.gotoAndPlay("sair");
- };
- som_mc.onRollOver = function()
- {
- controledesomef_mc.gotoAndPlay("inicio");
- };
- help_btn.onPress = function()
- {
- var _loc1_ = mdm.Application.path + "interface/help/help.htm";
- abreURL(_loc1_);
- };
- abreURL = function(var_url, tipo)
- {
- if(var_url != "inicio")
- {
- var _loc4_ = mdm.Network.checkConnection();
- }
- else
- {
- _loc4_ = true;
- }
- if(_loc4_ == true)
- {
- if(tipo == undefined or tipo == "")
- {
- if(var_url != "inicio")
- {
- if(var_url != "fechar")
- {
- myBrowser.refresh();
- myBrowser.goto(var_url);
- myBrowser.visible = true;
- }
- else
- {
- myBrowser.visible = false;
- }
- }
- else
- {
- var_url = mdm.Application.path + "interface/conteudo.htm";
- myBrowser = new mdm.Browser(0,46,795,468,var_url,true);
- myBrowser.visible = false;
- }
- }
- else if(tipo == "url")
- {
- getURL(var_url,"_blank");
- }
- }
- else if(var_url != mdm.Application.path + "interface/conteudo.htm")
- {
- myBrowser.visible = false;
- _root.connection_mc.gotoAndPlay("inicio");
- }
- else
- {
- myBrowser = new mdm.Browser(0,46,795,468,var_url,true);
- }
- };
- abreURL("inicio");
- conteudoCD_btn.onPress = function()
- {
- var _loc1_ = mdm.Application.path + "interface/conteudo.htm";
- abreURL(_loc1_);
- };
- conteudoCD_btn.onRollOut = function()
- {
- conteudoef_mc.gotoAndPlay("sair");
- };
- conteudoCD_btn.onRollOver = function()
- {
- conteudoef_mc.gotoAndPlay("inicio");
- };
- Key.addListener(chaveloja);
- lojaefeito = function(a)
- {
- _root.lojaquiz_mc.lojaEf_mc.gotoAndPlay(a);
- };
- _root.buscaLoja_btn.onRollOver = function()
- {
- lojaefeito("inicio");
- };
- _root.buscaLoja_btn.onRollOut = function()
- {
- lojaefeito("sair");
- };
- onEnterFrame = function()
- {
- if(Selection.getFocus())
- {
- verificaTecla();
- }
- };
- verificaTecla = function()
- {
- var _loc4_ = new Object();
- _loc4_.onKeyDown = function()
- {
- if(chaveloja.text != "")
- {
- lojaefeito("inicio");
- if(Key.getCode() == 13)
- {
- var _loc3_ = chaveloja.text.split(" ");
- ss = "";
- var _loc2_ = 0;
- while(_loc2_ < _loc3_.length)
- {
- if(_loc3_.length < _loc3_[_loc2_])
- {
- ss = ss + _loc3_[_loc2_] + "%20";
- }
- else
- {
- ss = ss + "%20" + _loc3_[_loc2_];
- }
- _loc2_ = _loc2_ + 1;
- }
- var_busca = ss;
- if(_root.flagBusca.selected == true)
- {
- var _loc4_ = "http://www.digerati.com.br/loja/busca.php?tipo=2&busca=" + var_busca + "&origem=CD";
- }
- else
- {
- _loc4_ = "http://www.google.com/custom?q=" + var_busca + "&sa=Pesquisar&client=pub-6700231061632290&forid=1&ie=ISO-8859-1&oe=ISO-8859-1&cof=GALT%3A%23008000%3BGL%3A1%3BDIV%3A%23336699%3BVLC%3A663399%3BAH%3Acenter%3BBGC%3AFFFFFF%3BLBGC%3A336699%3BALC%3A0000FF%3BLC%3A0000FF%3BT%3A000000%3BGFNT%3A0000FF%3BGIMP%3A0000FF%3BFORID%3A1&hl=pt";
- }
- abreURL(_loc4_);
- chaveloja.text = "";
- chaveloja.onKillFocus();
- }
- }
- };
- Key.addListener(_loc4_);
- };
- buscaLoja_btn.onPress = function()
- {
- var _loc3_ = chaveloja.text.split(" ");
- ss = "";
- var _loc2_ = 0;
- while(_loc2_ < _loc3_.length)
- {
- if(_loc3_.length < _loc3_[_loc2_])
- {
- ss = ss + _loc3_[_loc2_] + "%20";
- }
- else
- {
- ss = ss + "%20" + _loc3_[_loc2_];
- }
- _loc2_ = _loc2_ + 1;
- }
- var_busca = ss;
- if(_root.flagBusca.selected == true)
- {
- var _loc4_ = "http://www.digerati.com.br/loja/busca.php?tipo=2&busca=" + var_busca + "&origem=CD";
- }
- else
- {
- _loc4_ = "http://www.google.com/custom?q=" + var_busca + "&sa=Pesquisar&client=pub-6700231061632290&forid=1&ie=ISO-8859-1&oe=ISO-8859-1&cof=GALT%3A%23008000%3BGL%3A1%3BDIV%3A%23336699%3BVLC%3A663399%3BAH%3Acenter%3BBGC%3AFFFFFF%3BLBGC%3A336699%3BALC%3A0000FF%3BLC%3A0000FF%3BT%3A000000%3BGFNT%3A0000FF%3BGIMP%3A0000FF%3BFORID%3A1&hl=pt";
- }
- abreURL(_loc4_);
- chaveloja.text = "";
- chaveloja.onKillFocus();
- };
- home_btn.onPress = function()
- {
- abreURL("http://www.digerati.es/","url");
- };
- logo_btn.onPress = function()
- {
- abreURL("http://www.digerati.es/");
- };
-